package com.hsc.mvc.conversion;

/**
 * @author
 * @date 2025-06-03
 * @Description
 */
public class StringArray2IntegerArrayConvertor implements ConversionStretagy<String[], Integer[]>{
    @Override
    public Integer[] covert(String[] source) throws Exception {
        Integer[] target = new Integer[source.length];
        for (int i = 0; i < source.length; i++) {
            target[i] = Integer.valueOf(source[i]);
        }
        return target;
    }
}
